//
//  GoodsModel.m
//  MY_IGList_demo
//
//  Created by mac on 2019/3/26.
//  Copyright © 2019 Yilian. All rights reserved.
//

#import "GoodsModel.h"

@implementation GoodsModel
- (nonnull id<NSObject>)diffIdentifier {
    NSString *str = [NSString stringWithFormat:@"%@%@",self.title,self.desc];
    return str;
}

- (BOOL)isEqualToDiffableObject:(nullable id<IGListDiffable>)object {
    if (object == self) {
        return YES;
    }
    GoodsModel *model = (GoodsModel *)object;
    
    return _title == model.title && _img_name == model.img_name && _price == model.price && _desc == model.desc;
}
@end
